<template>
<div>

  <table border="1" cellspacing="0">
    <tr>
      <td>工作流</td>
      <td>配置</td>
      <td>是否可用</td>
    </tr>
    <tr v-for="i in list" :key="i.id">
      <td>{{i.name}}</td>
      <td>
        <router-link :to="{path:'/canshu',query:{id:i.id}}">配置参数</router-link>
      </td>
      <td v-if="i.status==1">可用</td>
      <td v-else>不可用</td>
    </tr>
  </table>

</div>
</template>

<script>
import maxios from "../../http/axios";

export default {
  name: "worklist",
  data(){
    return{
      list:[]
    }
  },
  methods:{
    get_list(){
      maxios('user/sho_work','get')
      .then(i=>{
        this.list = i.data.list
      })
    }
  },
  mounted() {
    this.get_list()
  }
}
</script>

<style scoped>

</style>